<?php
	//session
	header("content-type:text/html;charset=utf-8");
	session_start();
	$_SESSION['name']='你好';
	$num=array(1,2,3,4,5,6);
	$_SESSION['num']=$num;
	echo 'session设置成功';
	class dog
	{
		public $name;
		public $age;
		public $weight;
	}
	$dog=new dog();
	$dog->name="大黄";
	$dog->age=10;
	$dog->weight=10;
	$_SESSION['dog']=$dog;

?>